import request from '@/utils/request'

/**
 * @param {String} data.username 用户 -必填
 * @param {String} data.password 密码 -必填
 */
export function login(data) {
	return request({
		url: '/sys/login',
		method: 'post',
		data: data
	})
}

export function getUserInfo() {
	return new Promise((resolve, reject) => {
		resolve({code:0,roles:[]})
	})
}

export function logout() {
	return new Promise((resolve, reject) => {
		resolve(true)
	})
}
